STEP 5: We want to call all the functions at the bottom of our program so that we can easily reorder them later.

  • Go to and drag out Define Function.
  • Drop the new function AFTER the flip function definition and BEFORE the line that calls flip.
  • Name the function headstand.
  • Drop Flip Up Down INSIDE the headstand function.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)